package gameBasics;

import java.awt.*;

public abstract class GameObject {

    public int x, y;                                       //位置坐标

    protected final Rectangle rectangle = new Rectangle(); //用于碰撞检测

    public Rectangle getRectangle(){
        return rectangle;
    }

    public abstract void paint(Graphics graphics);

    public abstract int getWidth();

    public abstract int getHeight();

}
